﻿<UserControl x:Class="CAION2.Controls.StigmaCard"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:viewModels="clr-namespace:CAION2.ViewModels">

    <UserControl.DataContext>
        <viewModels:StigmaCardViewModel />
    </UserControl.DataContext>
    
    <UserControl.Resources>
        <viewModels:IconConverter x:Key="IconConverter"/>
    </UserControl.Resources>

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="48" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="48" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Border Width="44"
                Height="44"
                Margin="4,4,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top">
            <Image Width="40"
                    Height="40"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Source="{Binding Stigmas[CurrentStigma][skillicon_name], Converter={StaticResource IconConverter}}" />
            <Border.Background>
                <ImageBrush ImageSource="/CAION2;component/UI2/IconSlot.png" />
            </Border.Background>
        </Border>

        <!--<ListBox HorizontalContentAlignment="Center"
                                 ItemsSource="{Binding Path=Stigmas}">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <UniformGrid Columns="10" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>

            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Path=Value[level]}"/>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>-->


    </Grid>
</UserControl>
